﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Musicman.Common.Entities
{
    [Serializable]
    public class UserMessage
    {
        private long messageID;
        private User sender;
        private string subject;
        private string message;
        private DateTime messageDate;
        private UserMessage parent;
        private List<UserMessage> commments;

        public long MessageID
        {
            get { return messageID; }
            set { messageID = value; }
        }

        public User Sender
        {
            get { return sender; }
            set { sender = value; }
        }

        public string Subject
        {
            get { return subject; }
            set { subject = value; }
        }


        public string Message
        {
            get { return message; }
            set { message = value; }
        }

        public DateTime MessageDate
        {
            get { return messageDate; }
            set { messageDate = value; }
        }

        public UserMessage Parent
        {
            get { return parent; }
            set { parent = value; }
        }

        public List<UserMessage> Commments
        {
            get { return commments; }
            set { commments = value; }
        }
    }
}
